<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>EMINEM-Laravel @yield('title')</title>
    <!-- Bootstrap CSS 文件 -->
    <link rel="stylesheet" href="/static/bootstrap/css/bootstrap.min.css">
    @section('style')
    @endsection
</head>
<body>

<!-- 头部 -->
@section('header')
<div class="jumbotron">
    <div class="container">
        <h2>EMINEM-Laravel</h2>

        <p> Laravel表单</p>
    </div>
</div>
@show

<!-- 中间内容区局 -->
<div class="container">
    <div class="row">

        <!-- 左侧菜单区域   -->
        <div class="col-md-3">
            @section('leftmenu')
                <div class="list-group">
                    <a href="{{route('student.index')}}" class="list-group-item
                    {{app('request')->getPathInfo() == '/student'?'active':''}}"
                    >学生列表</a>
                    <a href="{{route('student.create')}}" class="list-group-item
                    {{app('request')->getPathInfo() == '/student/create'?'active':''}}"
                    >新增学生</a>
                </div>
            @show
        </div>

        <!-- 右侧内容区域 -->
        <div class="col-md-9">

            <!-- 自定义内容区域 -->
            @yield('content')
        </div>
    </div>
</div>

<!-- 尾部 -->
@section('footer')
<div class="jumbotron" style="margin:0;">
    <div class="container">
        <span> EMINEM</span>
    </div>
</div>
@show
<!-- jQuery 文件 -->
<script src="/js/app.js"></script>
<script src="/static/jquery/jquery.min.js"></script>
<!-- Bootstrap JavaScript 文件 -->
<script src="/static/bootstrap/js/bootstrap.min.js"></script>
@section('javascript')
@show
</body>
</html>